/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Buscador.crawler;

/**
 *
 * @author Alvaro
 */
public class Main {

    /**
     * @param args
     */
    public static void main(String[] args) {

        Spider sp = new Spider();
        if (args.length == 1){
            int n = Integer.parseInt(args[0]);
            sp.init("http://www.fdi.ucm.es", n);
        } else if (args.length == 2){
            int n = Integer.parseInt(args[0]);
            sp.init(args[1], n);
        } else {
            sp.init("http://www.fdi.ucm.es", 2000);
        }
        

    }
}
